﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManagerHome.aspx.cs" Inherits="Manager_ManagerHome" %>

<%@ Register Src="../../Pub/Module/WebHeader.ascx" TagName="WebHeader" TagPrefix="uc2" %>
<%@ Register Src="../../Pub/Module/WebFooter.ascx" TagName="WebFooter" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Administrator</title>
    <style type="text/css">
    .td_Footer_Top
    {
	    background-image:url("../../Images/Body/footer_top.png");
	    background-repeat:no-repeat;
	    width:1000px;
	    height:7px
    }
    .td_Footer_Center
    {
	    background-image:url("../../Images/Body/footer_center.png");
	    background-repeat:repeat-y;
	    text-align:center;
    }
    .td_Footer_Bottom
    {
	    background-image:url("../../Images/Body/footer_bottom.png");
	    background-repeat:no-repeat;
	    width:1000px;
	    height:7px
    }


    .lblFooter
    {
	    color:#ffffff;
	    font-family:Tahoma;
	    font-size:10pt;
    }
    .lbl_Common
    {
	    color:#000000;
	    font-size:10pt;
	    font-family:Verdana
    }
	
    </style>
    <link rel="SHORTCUT ICON" href="../Images/Icon/logo.jpg">
    
    <script language="javascript" type="text/javascript">
           
           
           
  function noLeftClick()
  {       
     
         alert("Don't press key in here");        
         return false;
                 
}

           
	</script>

</head>
<body onload="fnFullFrame()" style="margin-left: 0px; margin-top: 0px; margin-right: 0px;
    margin-bottom: 0px">
    <form id="form1" runat="server">
        <div>
            <table style="width: 100%; background-color: Black" cellpadding="0" cellspacing="0">
                
                <tr>
                    <td colspan="2">
                        <table border="3" cellpadding="0" cellspacing="0" style="background-color: White;
                            border-left-color: gainsboro; border-bottom-color: gainsboro; border-top-style: solid;
                            border-top-color: gainsboro; border-right-style: solid; border-left-style: solid;
                            border-right-color: gainsboro; border-bottom-style: solid;" width="100%">
                            <tr>
                                <td>
                                    <table border="0" cellpadding="2" cellspacing="0">
                                        <tr>
                                            <td style="padding-left: 5px; text-align: left; vertical-align: top; background-color: #fffffc"
                                                id="tdMainLeft">
                                                <div id="Lefttop-container">
                                                </div>
                                                <div id="Leftmid-container">
                                                    <div style="margin-left: 10px; text-align: left; vertical-align: middle">
                                                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="10pt"
                                                                        Text="Welcome: "></asp:Label>
                                                                    <asp:Label ID="lblLoginName" runat="server" Font-Names="tahoma" Font-Size="10pt"
                                                                        ForeColor="Red"></asp:Label>&nbsp;
                                                                    <asp:LinkButton ID="LinkButton1" runat="server" Font-Names="Verdana" Font-Size="7pt"
                                                                        ForeColor="Purple" Font-Italic="True" OnClick="LinkButton1_Click" Font-Bold="True">Thoát</asp:LinkButton></td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <table id="tblTree" cellpadding="0" cellspacing="0" border="0">
                                                                        <tr>
                                                                            <td>
                                                                                <div oncontextmenu="return false" onkeydown="noLeftClick()">
                                                                                    <asp:TreeView ID="tvwmenu" runat="server" Style="margin-left: 10px" ImageSet="XPFileExplorer"
                                                                                        ShowLines="True" Width="20%" AutoGenerateDataBindings="False" Font-Names="Verdana"
                                                                                        Font-Size="8pt" NodeIndent="15">
                                                                                        <ParentNodeStyle Font-Bold="False" />
                                                                                        <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
                                                                                        <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px"
                                                                                            BackColor="#B5B5B5" />
                                                                                        <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
                                                                                            NodeSpacing="0px" VerticalPadding="0px" Font-Bold="False" />
                                                                                        <RootNodeStyle Font-Bold="True" />
                                                                                        <LeafNodeStyle Font-Bold="False" />
                                                                                    </asp:TreeView>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </div>
                                                <div id="Leftbottom-container">
                                                </div>
                                            </td>
                                            <td id="tdFix" style="background-image: url('../Images/Icon/cs.jpg'); background-repeat: repeat-y;
                                                background-color: white; background-position: center; width: 7px; text-align: center"
                                                align="right">
                                                <img border="0" onclick="fnOnFix(this)" src="../Images/Icon/fixup.gif" style="cursor: pointer;
                                                    top: 10px; position: absolute;" />
                                                <img src="../Images/Icon/arrow_left.gif" border="0" onclick="fnShowMainLeft(this)"
                                                    id="imgArrow" style="cursor: pointer;" />
                                            </td>
                                            <td style="width: 100%; text-align: left; vertical-align: top; background-color: White;
                                                color: White">
                                                <table border="0" cellpadding="3" cellspacing="0" id="tblBody" style="width: 100%">
                                                    <tr>
                                                        <td>
                                                            <iframe src="SummaryHome.aspx" id="ifBody" name="ifBody" runat="server" marginwidth="0"
                                                                scrolling="no" marginheight="0" frameborder="0" width="100%"></iframe>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td valign="top" align="center" colspan="2" style="color: Black; background-color: lightgrey">
                        <uc1:WebFooter ID="WebFooter1" runat="server" />
                    </td>
                </tr>
            </table>
        </div>
        <input type="hidden" id="hidleft" runat="server" value="1" />
        <input id="hidFix" runat="server" type="hidden" value="0" />
    </form>

    <script language="javascript" type="text/javascript">
    
    function fnFullFrame(vHeight)
    {  
                var tbl=document.getElementById("tblBody"); 
                var ifBody=document.getElementById("ifBody");
                var tblTree=document.getElementById("tblTree");               
               var  sHieght=tbl.clientHeight;
               var tHeight=tblTree.clientHeight;
                if(vHeight!="" && vHeight!=null && vHeight!="undefined")
               { 
                     sHieght=vHeight;              
                } 
                var height=Math.max(sHieght,tHeight);
               
                ifBody.height=height+"px";
            
    }
    function fnShowMainLeft(obj)
    {
        var hidleft=document.getElementById("<%=hidleft.ClientID %>");
        var tdMainLeft=document.getElementById("tdMainLeft");
    
        if(hidleft.value=="1")
        {
            hidleft.value="0";
            tdMainLeft.style.display="none" ;
            tdMainLeft.style.visibility="hidden" ;
            obj.src="../Images/Icon/arrow_right.gif";       
                 
        }
        else
        {
             hidleft.value="1";
             tdMainLeft.style.display="block" ;
             tdMainLeft.style.visibility="visible" ;
             obj.src="../Images/Icon/arrow_left.gif";
        }
    }
    function fnOnFix(obj)
    {
        var hidFix=document.getElementById("<%=hidFix.ClientID %>");
        var tdFix=document.getElementById("tdFix"); 
         var tdMainLeft=document.getElementById("tdMainLeft");   
        var imgArrow=document.getElementById("imgArrow");          
           
        if(hidFix.value=="0")
        {
            hidFix.value="1";           
            obj.src="../Images/Icon/nofixup.gif"; 
            tdFix.setAttribute("onmouseover","fnAutoMainLeft('1')")   ;  
            tdFix.setAttribute("onmouseout","fnAutoMainLeft('0')")   ;   
            tdMainLeft.setAttribute("onmouseover","fnAutoMainLeft('1')")   ;         
            tdMainLeft.setAttribute("onmouseout","fnAutoMainLeft('0')")   ;    
        }
        else
        {
            hidFix.value="0";           
            obj.src="../Images/Icon/fixup.gif";
            tdFix.removeAttribute("onmouseover");            
            tdFix.removeAttribute("onmouseout");
            tdMainLeft.removeAttribute("onmouseover");  
            tdMainLeft.removeAttribute("onmouseout"); 
        }        
    }
    function fnAutoMainLeft(flag)
    {
        var hidleft=document.getElementById("<%=hidleft.ClientID %>");
        var tdMainLeft=document.getElementById("tdMainLeft");
        var obj=document.getElementById("imgArrow");

        if(flag=="0")
        {
            hidleft.value="0";
           
            tdMainLeft.style.display="none" ;
            tdMainLeft.style.visibility="hidden" ;
            obj.src="../Images/Icon/arrow_right.gif"; 
        }
        else
        {
             hidleft.value="1";
             tdMainLeft.style.display="block" ;
             tdMainLeft.style.visibility="visible" ;
             obj.src="../Images/Icon/arrow_left.gif";  
             
             //var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
             // document.body.scrollTop=parseInt(st);
             //document.documentElement.scrollTop=parseInt(st);
        }
    }
    function fnTopPage()
    {
            
            document.body.scrollTop=0;
            document.documentElement.scrollTop=0;
          
    }
     /*document.onkeydown=function()
    { 
       var isCtrl;       
        if(IsIE())
        {
                intKey = window.event.keyCode;
                if(intKey == 17)
                {
                      var regRule = /input/i;
		                return (regRule.test(event.target)) ? true : false;

                }             
        }
        return false;*/
      
         
    
 
    </script>

</body>
</html>
